package com.hy.service;

import com.hy.mapper.UserMapper;
import com.hy.medicine.PhoneUser;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 用户服务实现类
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public PhoneUser getUserById(Long userId) {
        return userMapper.selectById(userId);
    }

    @Override
    public PhoneUser getUserByPhone(String phone) {
        return userMapper.selectByPhone(phone);
    }
}
